package him.serviceimple;

import him.dao.LoginDAO;
import him.daoimple.LoginDAOImple;
import him.dto.login.LoginDTO;
import him.service.LoginService;

public class LoginServiceImple implements LoginService {
	
	private LoginDAO loginDAO;
	private static LoginServiceImple loginService;
	
	private LoginServiceImple(){
		loginDAO=new LoginDAOImple();
	}
	
	public static LoginServiceImple getInstance(){
		if (loginService==null) {
			loginService=new LoginServiceImple();
		}
		return loginService;
	}
	
	@Override
	public boolean deleteLogin(LoginDTO dto) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public LoginDTO getLogin(LoginDTO dto) {
		return loginDAO.getLogin(dto);
	}

	@Override
	public LoginDTO getLoginByID(LoginDTO dto) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getLoginCount(LoginDTO dto) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean insertLogin(LoginDTO dto) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateLogin(LoginDTO dto) {
		// TODO Auto-generated method stub
		return false;
	}

}
